﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RestrictUc.ascx.cs" Inherits="VoIPWeb.Uc.RestrictUc" %>
<table style="width:98%" border="0px">
        <tr>
            <td style="background-color:#E9FAD0">
            <img  src="/Css/Images/HH00441_.wmf_.gif" alt="last call" width="50px" />
            <span style="font-size:1.2em; font-weight:bold;margin:10px;color:#0F98E6">Last 10 calls</span>
                <asp:GridView ID="m_grv_recentCall" runat="server" AllowPaging="True" 
                    BackColor="White" BorderColor="#DEDFDE" 
                    BorderStyle="None" BorderWidth="1px" CellPadding="4" CssClass="GrvClass" 
                    ForeColor="Black" 
                    Width="100%" AutoGenerateColumns="False">
                     <Columns>
                        <asp:TemplateField HeaderText="STT" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate><%# Container.DataItemIndex +1 %></ItemTemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="Customer" ItemStyle-HorizontalAlign="Left">
                            <ItemTemplate><%# Eval("Customer")%></ItemTemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="Start Time" ItemStyle-HorizontalAlign="Left">
                            <ItemTemplate><%# Eval("StartTime")%></ItemTemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="Destination" ItemStyle-HorizontalAlign="Left">
                            <ItemTemplate><%# Eval("Destination")%></ItemTemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="Duration" ItemStyle-HorizontalAlign="Left">
                            <ItemTemplate><%# Eval("Duration")%></ItemTemplate>
                        </asp:TemplateField>
                          <asp:TemplateField HeaderText="Charge" ItemStyle-HorizontalAlign="Left">
                            <ItemTemplate>€ <%# Eval("Charge")%></ItemTemplate>
                        </asp:TemplateField>                   
                     </Columns>
                    <RowStyle BackColor="#F7F7DE" />
                    <FooterStyle BackColor="#CCCC99" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#0F98E6" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>            
               </td>
        </tr>
        <tr>
            <td> 
                <asp:Label ID="m_lbl_none" runat="server" Visible="false" Text=""></asp:Label>
            </td>
        </tr>
    </table>
   <asp:XmlDataSource ID="m_xml_datasoure_last_ten_calls" XPath="//Call" runat="server"></asp:XmlDataSource>